package com.zsummer.demo.cloudnacosconfig.controller;

import jdk.nashorn.internal.objects.annotations.Property;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zsummer
 * @since 2022/2/9
 */
//@RestController
public class TestController {

    @Value("${name}")
    private String name;

    @GetMapping("/test")
    public String getStr() {
        return "name = " + name;
    }
}
